/**
 * ajax查询全部数据
 */
function getAllContent() {
	$.ajax({
		type : "GET",
		url : "showContentJson",
		dataType : "json",
		beforeSend : function(XMLHttpRequest) {
			console.log("正在查询");
			// $("#showResult").text("正在查询 ");
			// Pause(this,100000);
		},
		success : function(msg) {
			//每次都是删除第一行以外的所有的行
			$("#showContentTable tr:not(:first)").remove();
			$.each(msg, function(i, elt) {
				var newRow = "<tr>";
				var temp = "<td>" + this.id + "</td>";
				temp += "<td>" + this.name + "</td>";
				temp += "<td>" + this.projectname + "</td>";
				temp += "<td>" + this.url + "</td>";
				temp += "<td>" + this.remark + "</td>";
				temp += "<td>" + this.iswork + "</td>";
				temp += "<td>" + "<a href=\" getActionsByContentId?contentId="+this.id+" \">查看业务</a>   <a href=\" www.baidu.com \" >删除</a>" + "</td>";
				newRow += temp;
				newRow += "</tr>";
				$("#showContentTable tr:last").after(newRow);
			});
		},
		complete : function(XMLHttpRequest, textStatus) {
			// 隐藏正在查询图片
			console.log("隐藏正在查询图片");
		},
		error : function(XMLHttpRequest, textStatus, errorThrown) {
			// 错误处理
			console.log("出错了" + textStatus + " :" + errorThrown)
		}
	});
}
/**
 *添加数据 
 */
function addContent() {
}